package com.dog.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dog.account.entity.Account;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
 * 订单mapper
 * @author 郭鲁政
 */
public interface AccountMapper extends BaseMapper<Account> {
    /**
     * 用户减钱
     * @param userId 用户ID
     * @param money  扣掉的钱
     */
    void decrease(Long userId, BigDecimal money);
    Account selectByUserIdAfter(Long userId);
}
